<?php
require_once 'db_connection.php';
$query = 'SELECT * FROM children';
$result = mysql_query($query);

if(!$result) die ('Database access failed: ' . mysql_error());
while ($row = mysql_fetch_assoc($result)){
  echo ' Name: ' .  $row['name'];
  echo ' Age: ' . $row['age'];
  echo ' Parents: ' . $row['parents'];
  echo ' Last Checked in: ' . $row['last_checked_in']; 
  echo '</br>';
}
?> 
